package com.example.administrator.bdsjws.activities.base;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import butterknife.ButterKnife;



public abstract class BaseActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getContentXML());
        ButterKnife.bind(this);
        initData();
        initView();
    }
    //得到布局文件  根据子类来决定
    public abstract int getContentXML();

    public abstract void initData();

    public abstract  void initView();
}
